package org.business.accounting.beans;

import org.business.accounting.interfaces.BasicOrder;
import org.business.accounting.interfaces.BasicProduct;
import org.business.accounting.interfaces.Cart;

public abstract class BasicOrderBean implements BasicOrder {

	private long id;
	private int qty;
	private double price;
	private Cart cart;

	public BasicOrderBean() {
		id = System.nanoTime();
	}

	public int getQty() {
		return qty;
	}

	public void setQty(int qty) {
		this.qty = qty;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public Cart getCart() {
		return cart;
	}

	public void setCart(Cart cart) {
		this.cart = cart;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public abstract BasicProduct getItem();

	public abstract void setItem(BasicProduct item);

	public abstract double calculatePrice();

}
